package com.amoyt.dao;


import com.amoyt.model.AdminModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(AdminModel record);

    int insertSelective(AdminModel record);

    AdminModel selectByPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(AdminModel record);

    int updateByPrimaryKey(AdminModel record);

    AdminModel login(@Param("accountNumber") String accountNumber, @Param("adminPassword") String adminPassword);

    List<AdminModel> getList(@Param("begin") int begin,@Param("nums") int nums);

    int getCount();
}